﻿<Window x:Class="RapidWPFDemo.WrappedRapid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:rl="clr-namespace:Jalindi.RapidLayout;assembly=RapidLayout2009.Windows"
    Title="WrappedRapid" Height="300" Width="300">
    <DockPanel>
        <Button Name="topbutton" Content="top button" DockPanel.Dock="Top" />
        <rl:RapidPanel Name="Panel"  DockPanel.Dock="Top"  Background="White" ShouldDebug="True">
            <TextBlock Name="StatusBox"  rl:RapidPanel.Top="preferred" rl:RapidPanel.Bottom="preferred" 
                   rl:RapidPanel.Left="preferred"
                   rl:RapidPanel.Horizontal="spring"
                   Text="aa{Binding StatusMessage}"></TextBlock>
            <ProgressBar Name="Progress" rl:RapidPanel.Top="l=1,t=StatusBox:top"
                     rl:RapidPanel.Bottom="l=1,t=StatusBox:bottom"
                     rl:RapidPanel.Left="l=10,tie,t=StatusBox"
                     Width="100" 
                     rl:RapidPanel.Vertical="spring"
                     rl:RapidPanel.Right="preferred" IsIndeterminate="true"
                     ></ProgressBar>
            <!--<TextBlock rl:RapidPanel.Top="preferred,tie,t=StatusBox"   rl:RapidPanel.Bottom="preferred" 
                   rl:RapidPanel.Left="preferred"
                   Text="{Binding FaultMessage}"></TextBlock>-->

        </rl:RapidPanel>
        <TextBlock TextWrapping="Wrap" Text="{Binding ElementName=Panel, Path=DebugInformation}" ></TextBlock>
        <!--<Button Name="bottombutton" Content="bottom button" DockPanel.Dock="Bottom" />-->

    </DockPanel>
</Window>
